<template>
  <div id="app">
 
  <van-tabbar v-model="active" v-if="$route.meta.footShow">
  
  <van-tabbar-item icon="home-o"><router-link to="/">首页</router-link></van-tabbar-item>
  <van-tabbar-item icon="search"><router-link to="/publish">发布</router-link> </van-tabbar-item>
  <van-tabbar-item icon="friends-o"><router-link to="/My">我的</router-link>  </van-tabbar-item>

</van-tabbar>
<router-view></router-view>

   
  </div>
</template>
<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>
<style lang="less" >
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
